package zl.mybatis.mapper;

import java.util.List;

/**
 * @author sunping
 * @create 2017/9/14
 */
public interface BaseDao<T> {
    public T get(Long id);

    public T get(T entity);

    public int insert(T entity);

    public int update(T entity);

    //public List<T> find(BaseQuery baseQuery);

    public int delete(Long id);

    public List<T> getByIds(List<Long> ids);
}
